{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }

    .leixing {
        color:#40BCF7;
        cursor:pointer;
    }

    .del {
        color:red !important;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            {include file="public/topsection"}
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">ID</th>
                                    <th data-align="center">类型</th>
                                    <th data-align="center">名次</th>
                                    <th data-align="center">金币奖励</th>
                                    <th data-align="center">土豪值倍数</th>
                                    <th data-align="center">热推分钟数</th>
                                    <th data-align="center">管理</th>
                                </tr>
                                </thead>
                                <tbody id="form">
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>{$v.id}</td>
                                    <td>
                                        {switch name="v.types"}
                                            {case value="1"}周星富豪{/case}
                                            {case value="2"}礼物周星{/case}
                                            {case value="3"}超星富豪{/case}
                                            {case value="4"}礼物超星{/case}
                                        {/switch}
                                    </td>
                                    <td>{$v.level}</td>
                                    <td>{if condition='$v.money'}{$v.money}{/if}</td>
                                    <td>{if condition='$v.tycoon_times > 0'}{$v.tycoon_times}{/if}</td>
                                    <td>{if condition='$v.tuijian_time'}{$v.tuijian_time}{/if}</td>
                                    <td>
                                        <div class="btn-group">
                                            <div data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">
                                                操作 <span class="caret"></span>
                                            </div>
                                            <ul class="dropdown-menu">
                                                <li><a onClick="add('{:url('addConfig',['id'=>$v['id'],'url'=>-1])}')">修改</a></li>
                                                <!--<li class="divider"></li>
                                                <li><a class="del" onClick="del({$v.id})">删除</a></li>-->
                                            </ul>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}

<script type="text/javascript">

</script>
